package club.banyuan.hrms.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropUtil {
    private static Properties properties = new Properties();

    static {
        InputStream inputStream = PropUtil.class.getClassLoader().getResourceAsStream("jdbc.properties");
        try {
            properties.load(inputStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }


    public static String getProp(String key) {
        return properties.getProperty(key);
    }
}
